<admintpl file="header" />
<style>
.table tbody{text-align:center;}
.const{margin-bottom:10px;}
.const a,.const span{font-size:12px;color:#333;}
.const a{margin-right:15px;}
.const_type a{margin-right:15px;}
.const a{cursor: pointer;}
.const .select{color:#337ab7;}
.const_type .search{float:right; margin-right:5px;font-size:14px;}
.down{color:black;}
.tt_bench_plan_list .fa{font-size: 16px;}
.wrap .fa{color: #a9b8bf;}
.well{background-color: transparent;}
.child-list-wraper{display:none;}
.tt_planlist .klass_ttpl{mask-image:none;}
.task-name a{color:#f25857!important;font-size:16px!important;}
.status_ttpl_wraper .status_ttpl{color:#337ab7;}
.tt_planlist .plan_list_li .right_ttpl .date,.tt_planlist .plan_list_li .right_ttpl .principle{font-size:14px;}
.tt_planlist .plan_list_li .right_ttpl .principle{width:280px;text-align:left;}
.tt_planlist .plan_list_li .right_ttpl .sup-set-mark{font-size:18px;cursor:pointer;}

</style>
<link href="__PUBLIC__/teamwork/index-1705121633.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/teamwork/lib-1705151620.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/teamwork/all-1705151620.css" rel="stylesheet" type="text/css">
<link href="__PUBLIC__/teamwork/index-1705151620.css" rel="stylesheet" type="text/css">
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('TeamWorks/index')}">{:L('ADMIN_TEAMWORK_INDEX')}</a></li>
			<li><a href="{:U('TeamWorks/add')}">{:L('ADMIN_TEAMWORK_ADD')}</a></li>
			<li><a href="{:U('TeamWorks/add_type')}">{:L('ADMIN_TEAMWORK_ADD_TYPE')}</a></li>
		</ul>
        
		<div class="_tt_layout_home_container">
	<!-- <div data-name="bench-plan-form"></div> -->
	<div data-name="bench-plan"><div><div class="tt_bench_myplan">
	<div data-name="week-box"><div><div class="tt_bench_plan_time">
	<div class="left">
		<div class="left_time" data-name="date-box">
			<span class="week" data-name="week">
			<php>$da = date("w");
				if( $da == "1" ){
				echo "星期一";
				}else if( $da == "2" ){
				echo "星期二";
				}else if( $da == "3" ){
				echo "星期三";
				}else if( $da == "4" ){
				echo "星期四";
				}else if( $da == "5" ){
				echo "星期五";
				}else if( $da == "6" ){
				echo "星期六";
				}else if( $da == "0" ){
				echo "星期日";
				}; </php>
			</span>
			<span class="date"><span data-name="month"><php>echo date("m");</php></span>月<span data-name="day"><php>echo date("d");</php></span>日<br><span data-name="year"><php>echo date("Y");</php></span>年</span>
		</div>
	</div>
	<div class="right">
		<ul class="right_week" data-name="week-list"><li class='week_list <php>if($week == 1){echo "active";}</php>' data-date="2017/05/15"><span class="name_list">
	<a data-trigger="false" href='{:U("TeamWorks/index",array("week"=>1))}'><php>if(date("w") == 1){echo "<span style='color:#337ab7;'>今天<span>";}else{echo "周一";}</php></a>
</span>

<span class="caret"></span>
</li><li class='week_list <php>if($week == 2){echo "active";}</php>' data-date="2017/05/16"><span class="name_list">
	<a data-trigger="false" href='{:U("TeamWorks/index",array("week"=>2))}'><php>if(date("w") == 2){echo "<span style='color:#337ab7;'>今天<span>";}else{echo "周二";}</php></a>
</span>

<span class="caret"></span>
</li><li class='week_list <php>if($week == 3){echo "active";}</php>' data-date="2017/05/17"><span class="name_list">
	<a data-trigger="false" href='{:U("TeamWorks/index",array("week"=>3))}'><php>if(date("w") == 3){echo "<span style='color:#337ab7;'>今天<span>";}else{echo "周三";}</php></a>
</span>

<span class="caret"></span>
</li><li class='week_list <php>if($week == 4){echo "active";}</php>' data-date="2017/05/18"><span class="name_list">
	<a data-trigger="false" href='{:U("TeamWorks/index",array("week"=>4))}'><php>if(date("w") == 4){echo "<span style='color:#337ab7;'>今天<span>";}else{echo "周四";}</php></a>
</span>

<span class="caret"></span>
</li><li class='week_list <php>if($week == 5){echo "active";}</php>' data-date="2017/05/19"><span class="name_list">
	<a data-trigger="false" href='{:U("TeamWorks/index",array("week"=>5))}'><php>if(date("w") == 5){echo "<span style='color:#337ab7;'>今天<span>";}else{echo "周五";}</php></a>
</span>

<span class="caret"></span>
</li><li class='week_list <php>if($week == 6){echo "active";}</php>' data-date="2017/05/20"><span class="name_list">
	<a data-trigger="false" href='{:U("TeamWorks/index",array("week"=>6))}'><php>if(date("w") == 6){echo "<span style='color:#337ab7;'>今天<span>";}else{echo "周六";}</php></a>
</span>

<span class="caret"></span>
</li><li class='week_list <php>if($week == 7){echo "active";}</php>' data-date="2017/05/21"><span class="name_list">
	<a data-trigger="false" href='{:U("TeamWorks/index",array("week"=>7))}'><php>if(date("w") == 7){echo "<span style='color:#337ab7;'>今天<span>";}else{echo "周日";}</php></a>
</span>

<span class="caret"></span>
</li></ul>
	</div>
</div>

</div></div>
	<div data-name="plan-cereate-form"></div>
	
	<form class="well form-search form-inline" method="post" action="{:U('TeamWorks/index')}">
			<div class="const">
			<span>按状态：</span>
			<a href='{:U("TeamWorks/index",array("status"=>"all"))}' <php>if($status == 'all'){echo "class='select'";}</php> >全部</a>
			<a href='{:U("TeamWorks/index",array("status"=>1))}' <php>if($status == 1){echo "class='select'";}</php>>未开始</a>
			<a href='{:U("TeamWorks/index",array("status"=>2))}' <php>if($status == 2){echo "class='select'";}</php>>进行中</a>
			<a href='{:U("TeamWorks/index",array("status"=>3))}' <php>if($status == 3){echo "class='select'";}</php>>已完成</a>
			<a href='{:U("TeamWorks/index",array("status"=>4))}' <php>if($status == 4){echo "class='select'";}</php>>已延迟</a>
			<a href='{:U("TeamWorks/index",array("status"=>5))}' <php>if($status == 5){echo "class='select'";}</php>>已取消</a>
			<a href='{:U("TeamWorks/index",array("status"=>6))}' <php>if($status == 6){echo "class='select'";}</php>>暂停中</a>
			</div>
			<div class="const">
			<span>按分类：</span>
			<a href='{:U("TeamWorks/index",array("type_id"=>"all"))}' <php>if($type_id == 'all'){echo "class='select'";}</php> >全部</a>
			<foreach name="types" item="vo">
			<a href='{:U("TeamWorks/index",array("type_id"=>$vo["id"]))}' <php>if($type_id == $vo['id']){echo "class='select'";}</php> >{$vo.name}</a>
			</foreach>
			</div>
			<div class="const_type const">
			<span>按范围：</span>
			<a href='{:U("TeamWorks/index",array("user_id"=>"all"))}' <php>if($user_id == 'all'){echo "class='select'";}</php> >全部</a>
			<a href='{:U("TeamWorks/index",array("user_id"=>1))}' <php>if($user_id == 1){echo "class='select'";}</php> >我负责的</a>
			<a href='{:U("TeamWorks/index",array("user_id"=>2))}' <php>if($user_id == 2){echo "class='select'";}</php> >我派发的</a>
			<a href='{:U("TeamWorks/index",array("user_id"=>3))}' <php>if($user_id == 3){echo "class='select'";}</php> >我参与的</a>
			<a href='{:U("TeamWorks/index",array("user_id"=>4))}' <php>if($user_id == 4){echo "class='select'";}</php> >我审批的</a>
            
			</div>
            
        </form>
	
	
	<div class="tt_expire_bench_plan_list" data-name="bench-expire-plan-area" style="display: none;">
		<div class="tt_bench_planlist_title" data-name="expire-title">
			<span class="today_plt expire_plt" original-title="收起" data-name="toggle-expire">
				<span class="txt">
					已过期
				</span>
				<span class="icon icon-w-arrow-up-double"></span>
			</span>
		</div>
		<div data-name="expire-plan-list">
			<div class="_tt_loading_m">努力加载中…</div>
		</div>
		
	</div>
	
	<div class="tt_bench_plan_list" data-name="bench-plan-area">
		<div class="tt_bench_planlist_title" data-name="plan-title">
			<span class="today_plt" original-title="收起" data-name="toggle-today">
				<span class="txt">
					任务列表
				</span>
			</span>
		</div>
		<div data-name="plan-list"><div class="tt_planlist">
		<ul class="list-container">
			<foreach name="results" item="vo">
			<if condition="$vo.id != 0">
			<li class="planitem"  style="position: relative;">
			<div class="plan_list_li">
				<div class="right_ttpl">
						<span class="cycle-placeholder"></span>
						<span class="principle" alt="负责人">负责人：{$vo.real_name}</span>
							<span class="date"><php>echo date('m',$vo['pub_time'])."/".date("d",$vo['pub_time']);</php></span>
					
							<span class='sup-set-mark fa <php>if($vo["is_target"] == 1){echo "fa-star";}else{echo "fa-star-o";}</php>' onclick="is_target({$vo['id']},{$vo['is_target']})" data-toggle="infotip" data-body="标为星标" data-id="339794_7539997_7_20_636306334737993949" data-name="set-mark"></span>
						
						<if condition="$vo['propose_id'] == session('ADMIN_ID')">
						
						<span id="edit_twork" class="sup-set-mark fa fa-pencil-square-o" onclick="edit_twork({$vo['id']})"></span>
						<span  class="sup-set-mark fa fa-trash-o" onclick="del_twork({$vo['id']})"></span>
						</if>
						
						
				</div>
				<div class="left_left">
							<!--<span data-id="339794_7539997_7_20_636306334737993949" data-name="packup" class="packup fa fa-plus-square-o"></span>-->
						
						<span class="status_ttpl_wraper">	
							<a href="javascript:void(0);"  class='status_ttpl  fa 
							<php>
							if($vo["status"] == 1){
								echo "fa-square-o";
							}else if($vo["status"] == 2){
								echo "fa-youtube-play";
							}else if($vo["status"] == 3){
								echo "fa-check";
							}else if($vo["status"] == 4){
								echo "fa-clock-o";
							}else if($vo["status"] == 5){
								echo "fa-close (alias)";
							}else if($vo["status"] == 6){
								echo "fa-pause";
							}
							</php>
							' data-toggle="infotip" data-tip="" data-id="339794_7539997_7_20_636306334737993949">
							<span class="">
							
							</span></a>
							
						</span>
							<div class="klass_box_ttpl tu-ft_m2">
								<div class="kclass" data-name="kclass-area"></div>
								<span class=" none_klass_ttpl tu-ft_m3"><php>if($vo['tname'] == ''){echo "未分类";}else{echo $vo['tname'];}</php></span>  
							</div>
				</div>
				<div class="left_ttpl p3">
							<span id="" data-name="taskName" class="tu-ft_m3  task-name disable">
								<a href='{:U("TeamWorks/work_view",array("id"=>$vo["id"]))}' class="t_title">{$vo.title}</a>
							</span>
					<div class="all-icons">
								<!--<span class="fa fa-check-square-o" data-toggle="infotip" data-body="有任务"></span>
								<span class="num"><php>if($vo['chind_ids'] == ''){echo '0';}else{echo count(explode(',',$vo['chind_ids']));}</php></span>-->
								<span class="fa fa-comment-o" data-toggle="infotip" data-body="有沟通"></span>
								<span class="num"><if condition="$vo['comm_num'] != ''">{$vo.comm_num}<else/>0</if></span>
								<span class="fa fa-pencil-square-o" data-toggle="infotip" data-body="有心得" alt="有心得"></span>
								<span class="num"><if condition="$vo['study_num'] != ''">{$vo.study_num}<else/>0</if></span>
					</div>
				</div>	
			</div>

			<div class="child-list-wraper p1">
				
				<ul class="child-list   "><li class="planitem" id="7540173" style="position: relative;">
				<div class="plan_list_li">
				
					<div class="right_ttpl">
					
							<span class="cycle-placeholder"></span>
						
								<span class="date warn">剩余1天</span>
							
						<span class="principle">王洪志</span>
								<span class="sup-set-mark fa fa-star-o" data-toggle="infotip" data-body="标为星标" data-id="339794_7540173_7_20_636306339410973949" data-name="set-mark"></span>
							
					</div>

					<div class="left_left">
								<span data-id="339794_7540173_7_20_636306339410973949" data-name="packup" class="packup fa fa-plus-square-o"></span>
							
							<span class="status_ttpl_wraper">	
								<a href="javascript:void(0);" class="status_ttpl tu-icon-checkbox-have tu-ft_c3 " data-toggle="infotip" data-tip="未开始" data-id="339794_7540173_7_20_636306339410973949"><span class="ico"></span></a>
								
							</span>
					</div>
					<div class="left_ttpl p1">
								<span id="339794_7540173_7_20_636306339410973949" data-name="taskName" class="child task-name tu-ft_m1">yibufen</span>
							
						<div class="all-icons">
									<span class="fa fa-check-square-o" data-toggle="infotip" data-body="有任务"></span>
									<span class="num">1</span>
						</div>
						
					</div>	
				</div>

				<div class="child-list-wraper p3">
					
					<ul class="child-list   "><li class="planitem" id="7540265" style="position: relative;">
					<div class="plan_list_li">
					
						<div class="right_ttpl">
								<span class="cycle-placeholder"></span>
									<span class="date warn">剩余1天</span>
								
							<span class="principle">王洪志</span>
									<span class="sup-set-mark fa fa-star-o" data-toggle="infotip" data-body="标为星标" data-id="339794_7540265_7_20_636306342118041949" data-name="set-mark"></span>
								
						</div>

						<div class="left_left">
							
									<span data-id="339794_7540265_7_20_636306342118041949" data-name="packup" class="packup fa fa-plus-square-o"></span>
								
								<span class="status_ttpl_wraper">	
									<a href="javascript:void(0);" class="status_ttpl tu-icon-checkbox-have tu-ft_c3 " data-toggle="infotip" data-tip="未开始" data-id="339794_7540265_7_20_636306342118041949"><span class="ico"></span></a>
									
								</span>
						</div>
						<div class="left_ttpl p1">
									<span id="339794_7540265_7_20_636306342118041949" data-name="taskName" class="child task-name tu-ft_m1">zaihuafen</span>
								
							<div class="all-icons">
										<span class="fa fa-check-square-o" data-toggle="infotip" data-body="有任务"></span>
										<span class="num">1</span>
							</div>
							
						</div>	
					</div>

					<div class="child-list-wraper p3">
						
						<ul class="child-list   "><li class="planitem" id="7540306" style="position: relative;">
						<div class="plan_list_li">
						
							<div class="right_ttpl">
									<span class="cycle-placeholder"></span>
								
										<span class="date warn">剩余1天</span>
								<span class="principle">王洪志</span>
										<span class="sup-set-mark fa fa-star-o" data-toggle="infotip" data-body="标为星标" data-id="339794_7540306_7_20_636306343215189949" data-name="set-mark"></span>
									
							</div>

							<div class="left_left">
									<span class="status_ttpl_wraper">	
										<a href="javascript:void(0);" class="status_ttpl tu-icon-checkbox-have tu-ft_c3 " data-toggle="infotip" data-tip="未开始" data-id="339794_7540306_7_20_636306343215189949"><span class="ico"></span></a>
										
									</span>
							</div>
							<div class="left_ttpl p1">
										<span id="339794_7540306_7_20_636306343215189949" data-name="taskName" class="child task-name tu-ft_m1">kk</span>
									
								<div class="all-icons">
											<!-- <span class="task-tag-placeholder"></span> -->
								</div>
								
							</div>	
						</div>

						<div class="child-list-wraper p3">
							
							<ul class="child-list hide  "></ul>
						</div>
					</li></ul>
					</div>
				</li></ul>
				</div>
			</li>
			</ul>
			</div>
			</li>
			</if>
		</foreach>
</ul>
<div class="showmore" data-name="showmore" style="display: none;">
	<a href="javascript:void(0);" class="text_fsm">
		<span>查看更多</span>
	</a>
</div></div></div>
		
	</div>
</div></div></div>
</div>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script src="__PUBLIC__/js/layer/layer.js"></script>
	<script>
			$('.fa-square-o').hover(function(){
				layer.tips('未开始', this, {
				  tips: [1, '#0FA6D8'] //还可配置颜色
				});
			});
			$('.fa-youtube-play').hover(function(){
				layer.tips('进行中', this, {
				  tips: [1, '#0FA6D8'] //还可配置颜色
				});
			});
			$('.fa-check').hover(function(){
				layer.tips('已完成', this, {
				  tips: [1, '#0FA6D8'] //还可配置颜色
				});
			});
			$('.fa-clock-o').hover(function(){
				layer.tips('已延迟', this, {
				  tips: [1, '#0FA6D8'] //还可配置颜色
				});
			});
			$('.fa-close (alias)').hover(function(){
				layer.tips('已取消', this, {
				  tips: [1, '#0FA6D8'] //还可配置颜色
				});
			});
			$('.fa-pause').hover(function(){
				layer.tips('暂停中', this, {
				  tips: [1, '#0FA6D8'] //还可配置颜色
				});
			});
			$('.t_title').hover(function(){
				layer.tips('fgh', this, {
				  tips: [1, '#0FA6D8'] //还可配置颜色
				});
			});
			
			function is_target(id,is_target){
				var id = id;
				var is_target = is_target;
				location.href = '/index.php?g=Admin&m=TeamWorks&a=is_target&id='+id+'&is_target='+is_target;
			}
			function edit_twork(id){
				var id = id;
				location.href = '/index.php?g=Admin&m=TeamWorks&a=edit&id='+id;
			}
			function del_twork(id){
				var id = id;
				location.href = '/index.php?g=Admin&m=TeamWorks&a=del_twork&id='+id;
			}
	</script>
</body>
</html>